package china.song314.testcode;

public class TestArray {
	public static void main(String[] args) {
		String[] array = {"1","2","3","4","5"};
		for (int i = 0; i < array.length; i++) {
			array[i] = "0";
		}
		print("----------  test  _______");
		String[] test = array;
		for (String s : test) {
			print(s);
		}
		print("----------  array  _______");
		for (String s : array) {
			print(s);
		}
		
		print("is equals = " + test.equals(array));
		print("array = " + array);
		print("test = " + test);
	} 
	
	private static void print(String str) {
		System.out.println(str);
	}
}
